'use strict';

module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;

  const User = app.model.define('admin', {
    admin_id: {
      allowNull: false,
      autoIncrement: true,
      primaryKey: true,
      type: INTEGER,
    },
    admin_name: STRING,
    password: STRING,
    level: STRING,
    phone: STRING,
  });

  return User;
};
